package com.itstation.neordo.ims.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.itstation.neordo.ims.dao.ActorDAO;
import com.itstation.neordo.ims.model.Actor;

@Service
@Transactional
public class ActorServiceImpl implements ActorService {

	@Autowired
	private ActorDAO actorDAO;
	
	@Override
	public void addActor(Actor actor) {
		actorDAO.addActor(actor);
	}

	@Override
	public void updateActor(Actor actor) {
		actorDAO.updateActor(actor);
	}

	@Override
	public Actor getActor(int id) {
		return actorDAO.getActor(id);
	}

	@Override
	public void deleteActor(int id) {
		actorDAO.deleteActor(id);
	}

	@Override
	public List<Actor> getActors() {
		return actorDAO.getActors();
	}

}
